package com.mishitech.curso.web.tag;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

public class NavigationTag extends TagSupport {

	private String modulo;

	public int doStartTag() throws JspException {
		try {
			if (modulo != null) {
				pageContext.getOut().print(modulo);
			}
		} catch (IOException ioe) {
			throw new JspException("Error: IOException while writing to client");
		}
		return SKIP_BODY;
	}

	/**
	 * @return the modulo
	 */
	public String getModulo() {
		return modulo;
	}

	/**
	 * @param modulo
	 *            the modulo to set
	 */
	public void setModulo(String modulo) {
		this.modulo = modulo;
	}

}
